<template>
  <div id="app">
    <Header></Header>
    <!-- 路由组件出口 -->
    <router-view></router-view>
    <Footer v-show="$route.meta.show"></Footer>
  </div>

</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
import router from '@/router';

export default {
  name: '',
  components: {
    Header,
    Footer
  },
  mounted() {
    this.$store.dispatch('home/categoryList');//注意路径
  }
}
</script>

<style scoped></style>
